cmake_minimum_required(VERSION 2.6)

#Debug
message(
  STATUS
  ${Boost_LIBRARIES}
)

#Déclaration du projet
project(BabelServer)


include_directories(/usr/include/boost)
link_directories(/usr/lib)

#Déclaration de l'exécutable
add_executable(
  BabelServer
  Config.h
  InputServerParams.cpp
  InputServerParams.h
  main.cpp
  RegisterCommand.cpp
  TCPConnection.cpp
  TCPConnection.h
  TCPServer.cpp
  TCPServer.h
  database/Client.hpp
  database/Client.cpp
  database/DatabaseManager.h
  database/DatabaseManager.cpp
  WelcomeCommand.cpp
  IntegrityDatas.h
  IntegrityDatas.cpp
  LoginCommand.cpp
  Protocol.h
  Protocol.cpp
  LogoutCommand.cpp
  AddContactCommand.cpp
  InfoContactCommand.cpp
  ProfilCommand.cpp
)

#Configuration de l'édition de liens
target_link_libraries(
  BabelServer
  boost_system-mt
  boost_serialization-mt
  boost_filesystem-mt
  boost_regex-mt
)

